package com.cus.vip.websystem.po;

<#list doc.constants.constant as constant>
<#if constant.@name=object() >
public enum Enum${constant.@name} {
<#list constant.const as const>	
	${const.@name}<#if const_has_next>,<#else>;</#if>
</#list>
   public static Enum${constant.@name} enumOf(int i){
    	switch(i)
    	{
<#list constant.const as const>
    	case ${const.@value}:
    		return ${const.@name};	
</#list>
    	default:
    		return null;
    	}
    }
	public  int val(){
    	switch(this)
    	{
<#list constant.const as const>
    	case ${const.@name}:
    		return ${const.@value};	
</#list>
    	default:
    		return -1;
    	}
    }
}
<#break>
</#if>
</#list>